package a704;

import java.util.HashMap;
import java.util.Map;

public class Sip2Replace2Application {
    static Map<String, String> MAP = new HashMap<String, String>() {{
        put("cancel", "BI");
        put("holdQueueLength", "CF");
        put("currencyType", "BH");
        put("homePhoneNumber", "BF");
        put("startItem", "BP");
        put("dueDate", "AH");
        put("fineItems", "AV");
        put("supportedMessages", "BX");
        put("feeIdentifier", "CG");
        put("feeLimit", "CC");
        put("validPatron", "BL");
        put("feeAcknowledged", "BO");
        put("loginPassword", "CO");
        put("securityInhibit", "CI");
        put("holdPickupDate", "CM");
        put("homeAddress", "BD");
        put("endItem", "BQ");
        put("sequenceNumber", "AY (used only when error detection is enabled)");
        put("printLine", "AG");
        put("patronPassword", "AD");
        put("unrenewedItems", "BN");
        put("institutionId", "AO");
        put("HoldType", "BY");
        put("overdueItems", "AT");
        put("mediaType", "CK");
        put("feeType", "BT");
        put("transactionId", "BK");
        put("holdItems", "AS");
        put("loginUserId", "CN");
        put("itemIdentifier", "AB");
        put("locationCode", "CP");
        put("recallDate", "CJ");
        put("screenMessage", "AF");
        put("libraryName", "AM");
        put("unavailableHoldItems", "CD");
        put("chargedItems", "AU");
        put("chargedItemsLimit", "CB");
        put("itemProperties", "CH");
        put("blockedCardMsg", "AL");
        put("validPatronPassword", "CQ");
        put("e-mailAddress", "BE");
        put("terminalPassword", "AC");
        put("checksum", "AZ (used only when error detection is enabled)");
        put("holdItemsLimit", "BZ");
        put("overdueItemsLimit", "CA");
        put("sortBin", "CL");
        put("expirationDate", "BW");
        put("owner", "BG");
        put("queuePosition", "BR");
        put("terminalLocation", "AN");
        put("patronIdentifier", "AA");
        put("titleIdentifier", "AJ");
        put("pickupLocation", "BS");
        put("recallItems", "BU");
        put("currentLocation", "AP");
        put("feeAmount", "BV");
        put("renewedItems", "BM");
        put("permanentLocation", "AQ");
        put("personalName", "AE");
    }};

    static Map<String,String> CREATE_MAP = new HashMap<String,String>(){{
        put("RL","patronCard");
        put("MP","mobile");
        put("XO","idCard");
        put("XT","patronType");
        put("XB","patronIdentifierCreateDate");
        put("XH","bornYear");
        put("XF","remark");
        put("RP","patronPhoto");
        put("XD","patronIdentifierEffectiveDate");
        put("XE","patronIdentifierEnableDate");
        put("XM","patronSex");
        put("XA","patronNew");
        put("XK","operateMethod");
        put("RI","patronRecordNo");
    }};

    public static void main(String[] args) {
        final String[] s = {" /** 读者证号 AA */\n" +
                "  private final String AA;\n" +
                "  /** 读者记录号 RI */\n" +
                "  private final String RI;\n" +
                "  /** 操作方式 XK */\n" +
                "  private final String XK;\n" +
                "  /** Screen message AF */\n" +
                "  private final String AF;"};
        MAP.forEach((key,value)->{
            s[0] = s[0].replace(value+";",key+";");
        });
        CREATE_MAP.forEach((key,value)->{
            s[0] = s[0].replace(key+";",value+";");
        });


        System.out.println(s[0]);
    }
}
